<h3>Update your information</h3>
<?= form_open("user_manager/updatePersonalData", array(
'onsubmit' => "if(document.getElementById('pass1').value != document.getElementById('pass2').value){alert('Two passwords do not match!'); return false;}")); ?>
<form onsubmit="alert('foo'); return false;">
<label for="firstname">Firstname: </label><input id="firstname" type="text" name="firstname" value="<?= $firstname ?>" /><br />
<label for="surname">Surname: </label><input id="surname" type="text" name="surname" value="<?= $surname ?>" /><br />
<label for="surname">Email: </label><input id="email" type="text" name="email" value="<?= $email ?>" /><br />
<label for="pass1">New password: </label><input id="pass1" type="password" name="pass1" /><br />
<span class="small">Only needed if you want to change your password</span><br />
<label for="pass2">Retype new password: </label><input id="pass2" type="password" name="pass2" /><br />
<input type="submit" value="Update your information" style="width: 200px;" />
</form>